import request from '@/utils/request'

// 查询影厅类型列表
export function listHalltype(query) {
  return request({
    url: '/cinema/cinema/halltype/list',
    method: 'get',
    params: query
  })
}

// 查询影厅类型详细
export function getHalltype(htId) {
  return request({
    url: '/cinema/cinema/halltype/' + htId,
    method: 'get'
  })
}

// 新增影厅类型
export function addHalltype(data) {
  return request({
    url: '/cinema/cinema/halltype',
    method: 'post',
    data: data
  })
}

// 修改影厅类型
export function updateHalltype(data) {
  return request({
    url: '/cinema/cinema/halltype',
    method: 'put',
    data: data
  })
}

// 删除影厅类型
export function delHalltype(htId) {
  return request({
    url: '/cinema/cinema/halltype/' + htId,
    method: 'delete'
  })
}

// 导出影厅类型
export function exportHalltype(query) {
  return request({
    url: '/cinema/cinema/halltype/export',
    method: 'get',
    params: query
  })
}